import { Route, Routes, Navigate } from 'react-router-dom'
import { PrivateRoute } from './components'
import './App.css'

import { Home, Login } from './pages'

export default function App() {
  return (
    <div className="App">
      <Routes>
        <Route path="/" element={<Navigate to="/home" />} />
        <Route path="/home" element={<PrivateRoute component={Home} />} />
        <Route path="/login" element={<Login />} />
      </Routes>
    </div>
  )
}
